package com.ruoyi.common.security.annotation;

import java.lang.annotation.*;
import java.util.concurrent.TimeUnit;

/**
 * @
 */
@Inherited
@Target(ElementType.METHOD)
@Retention(value = RetentionPolicy.RUNTIME)
public @interface Idempotent {
    String key() default "";
    int expireTime() default 20;
    TimeUnit timeUnit() default TimeUnit.SECONDS;
    String info() default "重复请求，请稍后重试";
    boolean afterDelete() default false;
}
